package cn.waxcc.controller;

import cn.waxcc.pojo.BsTechnicalOffices;
import cn.waxcc.service.BsTechnicalOfficesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 功能说明
 *
 * @author HZ
 * @date 2023-04-06 17:32:27
 */
@RestController
@RequestMapping("/tec")
public class BsTechnicalOfficesController {
    @Autowired
    private BsTechnicalOfficesService bsTechnicalOfficesService;
    //查询科室下的诊室
    @RequestMapping("/all")
    public List<BsTechnicalOffices> TechnicalOfficesall(){
        System.out.println("进来了");
        List<BsTechnicalOffices> bsTechnicalOffices = bsTechnicalOfficesService.TechnicalOfficesall();
        return bsTechnicalOffices;
    }
    //查询科室下诊室中的医生
    @RequestMapping("/tvd")
    @ResponseBody
    public List<BsTechnicalOffices> VisitOfficesDoctor(){
        List<BsTechnicalOffices> bsTechnicalOffices = bsTechnicalOfficesService.VisitOfficesDoctor();
        return bsTechnicalOffices;
    }
}
 